﻿using System;
using System.Data;
using FrankJie.Model;
namespace FrankJie.IDAL
{
	/// <summary>
	/// 评论接口
	/// </summary>
	public interface IComment
	{
		/// <summary>
		/// 增加一条评论
		/// </summary>
		/// <param name="commentInfo">评论实体</param>
        /// <returns>返回评论ID</returns>
        int Add(CommentInfo commentInfo);

        /// <summary>
        /// 删除评论通过ID
        /// </summary>
        /// <param name="id">评论ID</param>
        /// <returns></returns>
        bool Delete(int id);

        /// <summary>
        /// 检验通过评论通过ID集合
        /// </summary>
        /// <param name="idList">评论ID集合</param>
        /// <returns>返回是否成功</returns>
        bool CheckPass(string idList);
	} 
}
